//
//  FoundModel.m
//  Bees
//
//  Created by NowYouCanSee on 2019/2/26.
//  Copyright © 2019 xiaohan. All rights reserved.
//

#import "FoundModel.h"
@implementation FoundBannerModel
- (NSString*)image{
    if ([_image hasPrefix:URL_ImageData]) {
        return _image;
    }
    return NSStringFormat(@"%@%@",URL_ImageData,_image);
}
@end
@implementation FoundRecommendModel
- (NSString*)logo{
    if ([_logo hasPrefix:URL_ImageData]) {
        return _logo;
    }
    return NSStringFormat(@"%@%@",URL_ImageData,_logo);
}
+ (instancetype)initName:(NSString*)name LogoImage:(NSString*)logo{
    FoundRecommendModel *m = [FoundRecommendModel new];
    m.name = name;
    m.logoImg = IMAGE_NAMED(logo);
    return m;
}
@end
@implementation FoundCategoryModel
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"list" : [FoundRecommendModel class],
            };
}
@end
@implementation FoundModel
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"category" : [FoundCategoryModel class],
             @"button" : [FoundBannerModel class],
             @"banner" : [FoundBannerModel class],
             @"recommend" : [FoundRecommendModel class]
             };
}
@end
